package net.cyan.commons.grammar;

/**
 * 
 * @author camel
 * @date 2009-2-16
 */
public abstract class AbstractGrammarOperator<C extends GrammarContext> implements GrammarOperator<C>
{
    private GrammarOperatorType type;

    protected AbstractGrammarOperator(GrammarOperatorType type)
    {
        this.type = type;
    }

    protected AbstractGrammarOperator()
    {
        this.type = GrammarOperatorType.double_;
    }

    public GrammarOperatorType getType()
    {
        return type;
    }
}
